package com.example.back.bean;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class AuthInfo implements Serializable {
    private String sessionId;

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    private int failureNum = 0;

    private Integer loginStatus;

    private List<AuthUserInfoFather> authUserInfoFatherList;

    public Integer getLoginStatus() {
        return loginStatus;
    }

    public void setLoginStatus(Integer loginStatus) {
        this.loginStatus = loginStatus;
    }

    private String encryptedPassword="";

    public List<AuthUserInfoFather> getAuthUserInfoFatherList() {
        return authUserInfoFatherList;
    }

    public void setAuthUserInfoFatherList(List<AuthUserInfoFather> authUserInfoFatherList) {
        this.authUserInfoFatherList = authUserInfoFatherList;
    }

    public int getFailureNum() {
        return failureNum;
    }

    public void setFailureNum(int failureNum) {
        this.failureNum = failureNum;
    }

    private List<SystemFunction> functionList;

    private List<SystemRole> roleList;

    public Map<String, SystemService> getServicesMap() {
        return servicesMap;
    }

    public void setServicesMap(Map<String, SystemService> servicesMap) {
        this.servicesMap = servicesMap;
    }

    private Map<String,SystemService> servicesMap;


    public String getEncryptedPassword() {
        return encryptedPassword;
    }

    public void setEncryptedPassword(String encryptedPassword) {
        this.encryptedPassword = encryptedPassword;
    }

    public List<SystemFunction> getFunctionList() {
        return functionList;
    }

    public void setFunctionList(List<SystemFunction> functionList) {
        this.functionList = functionList;
    }

    public List<SystemRole> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<SystemRole> roleList) {
        this.roleList = roleList;
    }

    public boolean containService(String path){
        return this.servicesMap.containsKey(path);
    }
}
